@tool
@icon("icons/atomic_state.svg")
class_name AtomicState
extends State

func state_init(fsm:FSM):
	super.state_init(fsm)
func on_enter(from_state:State):
	super.on_enter(from_state)
func on_update(delta:float):
	super.on_update(delta)
func on_physics_update(delta:float):
	super.on_physics_update(delta)
func on_exit(to_state:State):
	super.on_exit(to_state)
func get_state_status() -> GameEnum.StateStatus:
	return super.get_state_status()
func translate_state(st_state:State,to_state:State,st_state_path:Array[State],to_state_path:Array[State]):
	on_enter(st_state)
func _get_configuration_warnings() -> PackedStringArray:
	var warnings = super._get_configuration_warnings()
	for child in get_children():
		if child is State:
			warnings.append("AtomicState" + "不能有State子节点")
	return warnings
